package Presenter;

import Model.Tile;
import junit.framework.TestCase;

public class TestGetTile extends TestCase {
	
	private Map makeMap() {
		Map map = new Map();
		map.setDefaultMap();
		return map;
	}
	
	public void testGetTile1() {
		assertFalse("These two tiles are not equal",new Tile("2").equals(makeMap().getTile(2, 2)));

	}
	
	public void testGetTile2() {
		assertFalse("These two tiles are not equal",new Tile("M3").equals(makeMap().getTile(1, 5)));
	}
	
	public void testGetTile3() {
		assertFalse("These two tiles are not equal",new Tile("M3").equals(makeMap().getTile(0, 0)));
	}
	
	public void testGetTile4() {
		assertNull("These two tiles are not equal",makeMap().getTile(1, -5));
	}
	
	public void testGetTile5() {
		assertNull("These two tiles are not equal",makeMap().getTile(453456, 45454));
	}

}

